package com.dbtimer.dbupdatespring.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dbtimer.dbupdatespring.dao.DmOriginalDataDao;
import com.dbtimer.dbupdatespring.entity.OriginalDataEntity;
import com.dbtimer.dbupdatespring.entity.RunConfigEntity;
import com.dbtimer.dbupdatespring.service.OriginalDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 11092
* @description 针对表【OriginalData】的数据库操作Service实现
* @createDate 2022-04-15 14:39:01
*/
@Service("originalDataService")
public class OriginalDataServiceImpl extends ServiceImpl<DmOriginalDataDao, OriginalDataEntity>
    implements OriginalDataService {
    @Autowired
    DmOriginalDataDao dmOriginalDataDao;

    /**
     * @Author swx
     * @Description //取出达梦数据库OriginalData所有实体
     * @Date 23:30 2022/4/17
     * @Param []
     * @Return java.util.List<com.dbtimer.dbupdatespring.entity.OriginalDataEntity>
     */
    @Override
    public List<OriginalDataEntity> getAll(){
        QueryWrapper<OriginalDataEntity> queryWrapper = new QueryWrapper<>();
        queryWrapper.select();
        return dmOriginalDataDao.selectList(queryWrapper);
    }

}




